package com.gcsoftware.web.beans.elasticsearchData;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;

/**
 * ES返回实体类
 * @author czp
 * date : 2018-03-31
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Aggs implements Serializable {
    @JsonProperty("es_app_name_groups")
    private Agg es_app_name_groups;

    @JsonProperty("es_api_name_groups")
    private Agg es_api_name_groups;

    @JsonProperty("es_item_groups")
    private Agg es_item_groups;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("es_app_name_groups", es_app_name_groups)
            .append("es_api_name_groups", es_api_name_groups)
            .toString();
    }

    public Agg getEs_item_groups() {
        return es_item_groups;
    }

    public void setEs_item_groups(Agg es_item_groups) {
        this.es_item_groups = es_item_groups;
    }

    public Agg getEs_app_name_groups() {
        return es_app_name_groups;
    }

    public void setEs_app_name_groups(Agg es_app_name_groups) {
        this.es_app_name_groups = es_app_name_groups;
    }

    public Agg getEs_api_name_groups() {
        return es_api_name_groups;
    }

    public void setEs_api_name_groups(Agg es_api_name_groups) {
        this.es_api_name_groups = es_api_name_groups;
    }
}
